<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>super关键字调用普通方法</title>
</head>
<body>
  <script>
    class Father{
      say() {
        return '我是爸爸';
      }
    }
    class Son extends Father {
      say (){
        // console.log('我是儿子');
        console.log(super.say() + '的儿子'); // 调用父亲的普通方法
      }
    }
    /* 调用规则 就近原则 */
    var son = new Son();
    son.say();
  </script>
</body>
</html>